package com.jinghao.ctws.controller;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ModelAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.jinghao.ctws.service.ICwvPublicSysService;
import com.jinghao.sys.entity.SysOrganization;

@Controller
@Scope("prototype")
@RequestMapping(value = "/public/ctws/sys")
public class CwvPublicSysController {
	//==================定制内容开始======================
//在这里修改代码
	@Resource
	public ICwvPublicSysService cwvPublicSysService;
	/**
	 * 删除仓库
	 * @param model 
	 * @return
	 */
	@ResponseBody
	@RequestMapping(value = "/deleteOrg", method = RequestMethod.GET)  
	public Map<String, Object>  deleteOrg(@ModelAttribute("model") SysOrganization model) throws Exception{
        this.cwvPublicSysService.deleteOrg(model);
        return model.getJson();  
	}
	//==================定制内容结束======================
}
